<script setup lang="ts">
import { useRouter } from "vue-router";

const router = useRouter();

/**
 * @description 跳转到测试页面
 */
const goTest = () => {
  router.push({
    path: "/test",
    // name: "Test",
    query: {
      id: 1
    }
  });
}
</script>

<template>
  <div class="container">
    <div>首页</div>
    <!-- <img src="@/assets/imgs/photo-img.jpg" alt="" class="img" />
    <img src="@/assets/icons/photo-icon.jpg" alt="" class="img" /> -->
    <el-button type="primary" @click="goTest">跳转到测试页面</el-button>
  </div>
</template>

<style lang="scss" scoped>
.container {
  display: flex;
  flex-direction: column;
  width: 100%;

  .img {
    width: 100px;
    height: 100px;
  }
}
</style>